package com.dfbz.demo02_InputStream;

import java.io.FileInputStream;
import java.io.InputStream;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo08_输入流的其他用法_skip {
    public static void main(String[] args) throws Exception{


        InputStream is=new FileInputStream("001.txt");          // abcde


        System.out.println((char)is.read());            // a
        System.out.println((char)is.read());            // b

        is.skip(2);

        System.out.println((char)is.read());            // e
        System.out.println(is.read());            // -1


        is.close();
    }
}
